package pack0722;

public class DemoA {
    public static void main(String[] args) {
        int [] a={8,55,32,69,15,20,44,23,82};

        for (int i = 0; i < a.length-1; i++) {    //只需要循环到23
            for(int j=0;j< a.length-1-i;j++){
                if(a[j+1]>a[j]){
                    int t=a[j+1];
                    a[j]=a[j+1];
                    a[j+1]=t;

                }
            }
            for ( i = 0; i < a.length; i++) {
                System.out.println(a[i]);
            }
        }

    }
}
